FROM node:16.13.2
MAINTAINER xian
ENV NODE_ENV=production
ENV HOST 0.0.0.0
RUN mkdir -p /nuxt
COPY . /nuxt
WORKDIR /nuxt
EXPOSE 3000
RUN npm cache clean --force
RUN npm install -g cnpm --registry=https://registry.npm.taobao.org
RUN cnpm install
RUN npm run build
CMD ["npm","start"]

